﻿using System;

namespace ProjectEuler
{
	// Add all the natural numbers below one thousand that are multiples of 3 or 5.
	class Problem0001
	{
		static void Main(string[] args)
		{
			int result = 0;
			for (int i = 1; i < 1000; i++)
				if ((i % 3 == 0) || (i % 5 == 0))
					result += i;
			Console.Write(result);
			Console.Read();
		}
	}
}
